package com.bosssoft.user.permission.center.serve.service;

import com.bosssoft.user.permission.center.serve.pojo.dto.LoginDTO;
import com.bosssoft.user.permission.center.serve.pojo.dto.RouteDTO;
import com.bosssoft.user.permission.center.serve.pojo.query.LoginQuery;
import org.springframework.util.RouteMatcher;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @interfaceName: LoginService
 * @description: 定义了统一登录业务的接口
 * @author: lanyukai
 * @date: 2024/6/11 16:57
 * @since 1.0
 **/
public interface LoginService {
    /**
     * 界面调用接口进行登录操作
     * @author lanyukai
     * @date 2024/06/11 17:02
     * @param userQuery 需要查询的用户信息，用于进行账号、密码的比对
     * @return token信息
     */
    LoginDTO login(@NotNull @Valid LoginQuery userQuery);
    /**
     * 根据token进行鉴权
     * @author lanyukai
     * @date 2024/06/11 17:02
     * @return 路由信息
     */
    RouteDTO createDynamicRoute();
}
